<template>
  <div>
    <Personal :uid="uid" v-if="merType==0" />
    <Enterprise :uid="uid" v-if="merType==1" />
  </div>
</template>

<script>
// 引入个人商户入网
import Personal from "./components/personal";
import Enterprise from "./components/enterprise";
import axios from "axios";
export default {
  components: {
    Personal,
    Enterprise,
  },
  data() {
    return {
      uid: "",
      datas: "",
      merType:""
    };
  },
  created() {
    this.uid = this.$route.query.uid;
    this.merType = this.$route.query.merType
  },
  methods: {
    getData() {
      axios
        .post("api/merchant/getMerInfo", { uid: this.uid })
        .then((res) => {
          console.log("获取的值");
          console.log(res);
          this.datas = res.data.data
        })
        .catch((err) => {
          console.log(err);
        });
    },
    back() {
      this.$router.push({
        name: "businessManage",
      });
    },
  },
};
</script>

<style>
</style>